<template>
    <div >
        <template v-for="(item) in center">
      <Daren  :props="item" :key="item.id"/>
    </template>
    </div>
</template>

<script>

import axios from 'axios'
axios.defaults.baseURL = 'https://api.hongbeibang.com/v2'
import Daren from "../../components/Daren"
export default {
  data() {
    return {
        center:[]
    };
  },
   async created() {
    // 发起网络请求
    const url= 'https://api.hongbeibang.com/v2/feed/getMasterNew?_t=1607132463988&pageIndex=0&pageSize=10&all=true&timestamp=1607132463988'

    let res = await axios.get(url);
    // console.log();
    this.center = res.data.content
  },
  

  components: {
    Daren
  },
};
</script>

<style lang="scss" scoped>

</style>
